export default [
    {
			path: '/pub_dynamic',
			name: 'pub_dynamic',
			// component: require('pages/car-test'),
	//		component: resolve => require(['../pages/car/car-test'], resolve),
			component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/pubDynamic'));}, 'community')},
			meta: {
				auth: false,
			}
		},
	// 	{
	// 		path: '/test',
	// 		name: 'test',
	// 		// component: require('pages/car-test'),
	// //		component: resolve => require(['../pages/car/car-test'], resolve),
	// 		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/test'));}, 'community')},
	// 		meta: {
	// 			auth: true,
	// 		}
	// },
   {
		path: '/community_home',
		name: 'community_home',
		// component: require('pages/car-test'),
//		component: resolve => require(['../pages/car/car-test'], resolve),
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/community_home'));}, 'community')},
		meta: {
			auth: false,
			keepAlive:true
		},
		// children:[
		// 	{
		// 		path: '/community_home/fork_list',
		// 		name: 'fork_list',
		// 		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/forkList'));}, 'community')},
		// 		meta: {
		// 			auth: true,
		// 		}
		// 	},
		// 	{
		// 		path: '/community_home/active_list',
		// 		name: 'community_home/active_list',
		// 		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/activeList'));}, 'community')},
		// 		meta: {
		// 			auth: true,
		// 		}
		// 	},
		// 	{
		// 		path: '/community_home/car_friend_list',
		// 		name: 'car_friend_list',
		// 		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/carFriendList'));}, 'community')},
		// 		meta: {
		// 			auth: true,
		// 		}
		// 	},
		// 	{
		// 		path: '/community_home/new_list',
		// 		name: 'new_list',
		// 		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/newList'));}, 'community')},
		// 		meta: {
		// 			auth: true,
		// 		}
		// 	},
		// ]
	},
	{
		path: '/fork_list',
		name: 'fork_list',
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/forkList'));}, 'community')},
		meta: {
			auth: false,
		}
	},
	//我的动态
	{
		path: '/active_list',
		name: 'active_list',
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/activeList'));}, 'community')},
		meta: {
			auth: false,
		}
	},
	{
		path: '/active_list',
		name: 'active_list',
		component: resolve => { require.ensure([], function (require) { resolve(require('../pages/community/activeList')); }, 'community') },
		meta: {
			auth: false,
		}
	},
	{
		path: '/car_friend_list',
		name: 'car_friend_list',
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/carFriendList'));}, 'community')},
		meta: {
			auth: false,
		}
	},
	{
		path: '/car_friend_detail/:meetId',
		name: 'car_friend_detail',
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/carFriendDetail'));}, 'community')},
		meta: {
			auth: false,
		}
	},
	{
		path: '/new_list',
		name: 'new_list',
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/newList'));}, 'community')},
		meta: {
			auth: false,
		}
	},
	{
		path: '/new_comment_detail',
		name: 'new_comment_detail',
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/newCommentDetail'));}, 'community')},
		meta: {
			auth: false,
		}
	},
	{
		path: '/new_topic_detail',
		name: 'new_topic_detail',
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/newTopicDetail'));}, 'community')},
		meta: {
			auth: false,
		}
	},
	{
		path: '/new_topic_pub',
		name: 'new_topic_pub',
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/newTopicPub'));}, 'community')},
		meta: {
			auth: false,
		}
	},
	{
		path: '/new_comment',
		name: 'new_comment',
		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/newComment'));}, 'community')},
		meta: {
			auth: false,
		}
	},
// 	{
// 		path: '/community_edit',
// 		name: 'community_edit',
// 		// component: require('pages/car-test'),
// //		component: resolve => require(['../pages/car/car-test'], resolve),
// 		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/community_edit'));}, 'community')},
// 		meta: {
// 			auth: false,
// 		}
//     },
//     {
// 		path: '/fork_list',
// 		name: 'fork_list',
// 		// component: require('pages/car-test'),
// //		component: resolve => require(['../pages/car/car-test'], resolve),
// 		component:resolve => {require.ensure([], function(require){resolve(require('../pages/community/forkList'));}, 'community')},
// 		meta: {
// 			auth: false,
// 		}
// 	},
	{
		path: '/my_dynamic',
		name: 'my_dynamic',
		component: resolve => { require.ensure([], function (require) { resolve(require('../pages/community/myDynamic')); }, 'community') },
		meta: {
			auth: false,
		}
	},
	//活动详情
	{
		path: '/activity_list_detail',
		name: 'activity_list_detail',
		component: resolve => { require.ensure([], function (require) { resolve(require('../pages/community/activeDetail')); }, 'community') },
		meta: {
			auth: false
		}
	},
	//活动报名详情
	{
		path: '/activity_attend_detail',
		name: 'activity_attend_detail',
		component: resolve => { require.ensure([], function (require) { resolve(require('../pages/community/activeAttend')); }, 'community') },
		meta: {
			auth: false
		}
	},
	// 报名活动人员详情
	{
		path: '/active_attendDetail/:activeId',
		name: 'active_attendDetail',
		component: resolve => { require.ensure([], function (require) { resolve(require('../pages/community/active_attendDetail')); }, 'community') },
	  }, 
	//搜索页
	{
		path: '/search_page',
		name: 'search_page',
		component: resolve => { require.ensure([], function (require) { resolve(require('../pages/community/search_page')); }, 'community') },
		meta: {
			auth: false
		}
	},
	//搜索页
	{
		path: '/search_info_page/:keyword/:type',
		name: 'search_info_page',
		component: resolve => { require.ensure([], function (require) { resolve(require('../pages/community/search_info_page')); }, 'community') },
		meta: {
			auth: false
		}
	},
	//二级评论
	{
		path: '/new_comment_info/:id/:spaceId',
		name: 'new_comment_info',
		component: resolve => { require.ensure([], function (require) { resolve(require('../pages/community/newCommentInfo')); }, 'community') },
		meta: {
			auth: false
		}
	},
]